package com.wedo.mall.util;

import android.text.TextUtils;

import com.e.library.http.EApi;

/**
 * @author lxy
 * @time 2017/7/22  14:29
 */
public final class WUrl {

    public static String url(String originUrl){
        if(TextUtils.isEmpty(originUrl)) {
            return originUrl;
        }

        if(!originUrl.startsWith("http")) {
            StringBuilder url = new StringBuilder(EApi.BASE_URL);
            url.append(originUrl);
            return url.toString();
        }
        return originUrl;
    }


}
